.class public Lcom/estrongs/android/ui/view/HomeSdcardProgressView;
.super Landroid/view/View;
.source "HomeSdcardProgressView.java"


# instance fields
.field private a:Landroid/graphics/Paint;

.field private b:Landroid/text/TextPaint;

.field private c:Landroid/text/TextPaint;

.field private d:Landroid/graphics/Paint;

.field private e:Landroid/graphics/Paint;

.field private f:Landroid/graphics/RectF;

.field private g:Landroid/graphics/PointF;

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:I

.field private o:I

.field private p:I

.field private q:Ljava/text/DecimalFormat;

.field private r:F

.field private s:I

.field private t:I

.field private u:F

.field private v:I

.field private w:I

.field private x:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const p1, 0x7f0700ef

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->h:I

    const p1, 0x7f0700af

    .line 3
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->i:I

    const p1, 0x7f0700a6

    .line 4
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->j:I

    const p1, 0x7f060330

    .line 5
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->k:I

    const p1, 0x7f060323

    .line 6
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->l:I

    const p1, 0x7f060327

    .line 7
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->m:I

    const p1, 0x7f060326

    .line 8
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->n:I

    const p1, 0x7f060329

    .line 9
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->o:I

    const p1, 0x7f070100

    .line 10
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->p:I

    .line 11
    new-instance p1, Ljava/text/DecimalFormat;

    const-string v0, "#.##"

    invoke-direct {p1, v0}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->q:Ljava/text/DecimalFormat;

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 25
    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const p1, 0x7f0700ef

    .line 26
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->h:I

    const p1, 0x7f0700af

    .line 27
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->i:I

    const p1, 0x7f0700a6

    .line 28
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->j:I

    const p1, 0x7f060330

    .line 29
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->k:I

    const p1, 0x7f060323

    .line 30
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->l:I

    const p1, 0x7f060327

    .line 31
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->m:I

    const p1, 0x7f060326

    .line 32
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->n:I

    const p1, 0x7f060329

    .line 33
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->o:I

    const p1, 0x7f070100

    .line 34
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->p:I

    .line 35
    new-instance p1, Ljava/text/DecimalFormat;

    const-string p2, "#.##"

    invoke-direct {p1, p2}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->q:Ljava/text/DecimalFormat;

    .line 36
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 13
    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const p1, 0x7f0700ef

    .line 14
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->h:I

    const p1, 0x7f0700af

    .line 15
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->i:I

    const p1, 0x7f0700a6

    .line 16
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->j:I

    const p1, 0x7f060330

    .line 17
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->k:I

    const p1, 0x7f060323

    .line 18
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->l:I

    const p1, 0x7f060327

    .line 19
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->m:I

    const p1, 0x7f060326

    .line 20
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->n:I

    const p1, 0x7f060329

    .line 21
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->o:I

    const p1, 0x7f070100

    .line 22
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->p:I

    .line 23
    new-instance p1, Ljava/text/DecimalFormat;

    const-string p2, "#.##"

    invoke-direct {p1, p2}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->q:Ljava/text/DecimalFormat;

    .line 24
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a()V

    return-void
.end method

.method private a(I)I
    .locals 1

    .line 25
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    return p1
.end method

.method private a()V
    .locals 4

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->m:I

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->t:I

    .line 6
    new-instance v0, Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a:Landroid/graphics/Paint;

    .line 7
    sget-object v2, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a:Landroid/graphics/Paint;

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->t:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->k:I

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->s:I

    .line 10
    new-instance v0, Landroid/text/TextPaint;

    invoke-direct {v0, v1}, Landroid/text/TextPaint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    .line 11
    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->s:I

    invoke-virtual {v0, v2}, Landroid/text/TextPaint;->setColor(I)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->i:I

    invoke-direct {p0, v2}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(I)I

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v2}, Landroid/text/TextPaint;->setTextSize(F)V

    .line 13
    new-instance v0, Landroid/text/TextPaint;

    invoke-direct {v0, v1}, Landroid/text/TextPaint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->c:Landroid/text/TextPaint;

    .line 14
    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->s:I

    invoke-virtual {v0, v2}, Landroid/text/TextPaint;->setColor(I)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->c:Landroid/text/TextPaint;

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->j:I

    invoke-direct {p0, v2}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(I)I

    move-result v2

    int-to-float v2, v2

    invoke-virtual {v0, v2}, Landroid/text/TextPaint;->setTextSize(F)V

    .line 16
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d:Landroid/graphics/Paint;

    .line 17
    sget-object v2, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d:Landroid/graphics/Paint;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->l:I

    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d:Landroid/graphics/Paint;

    const/16 v2, 0xfa

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 20
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    .line 21
    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    iget v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->n:I

    invoke-virtual {v1, v3}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 8

    .line 26
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    .line 27
    iget v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->r:F

    const/4 v2, 0x0

    cmpl-float v2, v1, v2

    if-lez v2, :cond_0

    const v2, 0x3c23d70a    # 0.01f

    cmpg-float v1, v1, v2

    if-gtz v1, :cond_0

    .line 28
    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(F)Ljava/lang/StringBuffer;

    goto :goto_1

    .line 29
    :cond_0
    iget v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->r:F

    const/high16 v2, 0x41200000    # 10.0f

    cmpl-float v2, v1, v2

    if-lez v2, :cond_1

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    goto :goto_0

    :cond_1
    iget-object v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->q:Ljava/text/DecimalFormat;

    float-to-double v3, v1

    invoke-virtual {v2, v3, v4}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v1

    :goto_0
    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    .line 30
    :goto_1
    iget-object v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {v1}, Landroid/text/TextPaint;->descent()F

    move-result v1

    iget-object v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {v2}, Landroid/text/TextPaint;->ascent()F

    move-result v2

    sub-float/2addr v1, v2

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v1, v2

    .line 31
    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {v3}, Landroid/text/TextPaint;->descent()F

    move-result v3

    sub-float/2addr v1, v3

    .line 32
    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v3

    iget-object v4, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->c:Landroid/text/TextPaint;

    const-string v5, "%"

    invoke-virtual {v4, v5}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v4

    add-float/2addr v3, v4

    div-float/2addr v3, v2

    .line 33
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v4, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v6, v4, Landroid/graphics/PointF;->x:F

    sub-float/2addr v6, v3

    iget v4, v4, Landroid/graphics/PointF;->y:F

    add-float/2addr v4, v1

    iget-object v7, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {p1, v2, v6, v4, v7}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 34
    iget-object v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    sub-float/2addr v2, v3

    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b:Landroid/text/TextPaint;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v0

    add-float/2addr v2, v0

    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v0, v0, Landroid/graphics/PointF;->y:F

    add-float/2addr v0, v1

    iget-object v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->c:Landroid/text/TextPaint;

    invoke-virtual {p1, v5, v2, v0, v1}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v1, v0, Landroid/graphics/PointF;->x:F

    iget v0, v0, Landroid/graphics/PointF;->y:F

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->x:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->n:I

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v1, v0, Landroid/graphics/PointF;->x:F

    iget v0, v0, Landroid/graphics/PointF;->y:F

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->x:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    return-void
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    const/high16 v1, 0x40000000    # 2.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v1, v0, Landroid/graphics/PointF;->x:F

    iget v0, v0, Landroid/graphics/PointF;->y:F

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->w:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/FexApplication;->c()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->o:I

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    iget v1, v0, Landroid/graphics/PointF;->x:F

    iget v0, v0, Landroid/graphics/PointF;->y:F

    iget v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->w:I

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    return-void
.end method

.method private d(Landroid/graphics/Canvas;)V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a:Landroid/graphics/Paint;

    iget v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->t:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 2
    iget-object v3, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->f:Landroid/graphics/RectF;

    iget v5, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->u:F

    iget-object v7, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a:Landroid/graphics/Paint;

    const/high16 v4, -0x3d4c0000    # -90.0f

    const/4 v6, 0x1

    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    return-void
.end method


# virtual methods
.method public a(JJ)V
    .locals 4

    const/high16 v0, 0x3f800000    # 1.0f

    const-wide/16 v1, 0x0

    cmp-long v3, p1, v1

    if-gtz v3, :cond_0

    const/4 v1, 0x0

    .line 1
    iput v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->r:F

    goto :goto_0

    :cond_0
    long-to-float v1, p1

    mul-float v1, v1, v0

    long-to-float v2, p3

    div-float/2addr v1, v2

    const/high16 v2, 0x42c80000    # 100.0f

    mul-float v1, v1, v2

    .line 2
    iput v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->r:F

    :goto_0
    long-to-float p1, p1

    mul-float p1, p1, v0

    long-to-float p2, p3

    div-float/2addr p1, p2

    const/high16 p2, 0x43b40000    # 360.0f

    mul-float p1, p1, p2

    .line 3
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->u:F

    .line 4
    invoke-virtual {p0}, Landroid/view/View;->postInvalidate()V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/view/View;->onDetachedFromWindow()V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 4

    .line 1
    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->drawColor(I)V

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v1

    if-le v0, v1, :cond_0

    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v0

    goto :goto_0

    :cond_0
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v0

    :goto_0
    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->v:I

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->w:I

    .line 5
    iget v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->p:I

    invoke-direct {p0, v1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(I)I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->x:I

    .line 6
    new-instance v0, Landroid/graphics/RectF;

    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v1

    int-to-float v1, v1

    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v2

    int-to-float v2, v2

    const/4 v3, 0x0

    invoke-direct {v0, v3, v3, v1, v2}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->f:Landroid/graphics/RectF;

    .line 7
    new-instance v0, Landroid/graphics/PointF;

    iget-object v1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->f:Landroid/graphics/RectF;

    invoke-virtual {v1}, Landroid/graphics/RectF;->centerX()F

    move-result v1

    iget-object v2, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->f:Landroid/graphics/RectF;

    invoke-virtual {v2}, Landroid/graphics/RectF;->centerY()F

    move-result v2

    invoke-direct {v0, v1, v2}, Landroid/graphics/PointF;-><init>(FF)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->g:Landroid/graphics/PointF;

    .line 8
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->c(Landroid/graphics/Canvas;)V

    .line 9
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->d(Landroid/graphics/Canvas;)V

    .line 10
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->b(Landroid/graphics/Canvas;)V

    .line 11
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(Landroid/graphics/Canvas;)V

    return-void
.end method

.method protected onMeasure(II)V
    .locals 2

    .line 1
    invoke-super {p0, p1, p2}, Landroid/view/View;->onMeasure(II)V

    .line 2
    iget v0, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->h:I

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->a(I)I

    move-result v0

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->getSuggestedMinimumWidth()I

    move-result v1

    .line 4
    invoke-static {v0, p1}, Landroid/view/View;->resolveSize(II)I

    move-result p1

    .line 5
    invoke-static {v1, p1}, Ljava/lang/Math;->max(II)I

    move-result p1

    .line 6
    invoke-virtual {p0}, Landroid/view/View;->getSuggestedMinimumHeight()I

    move-result v1

    .line 7
    invoke-static {v0, p2}, Landroid/view/View;->resolveSize(II)I

    move-result p2

    .line 8
    invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I

    move-result p2

    .line 9
    invoke-virtual {p0, p1, p2}, Landroid/view/View;->setMeasuredDimension(II)V

    return-void
.end method

.method public setProgressColor(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/HomeSdcardProgressView;->t:I

    return-void
.end method
